<div class="container contents bgw">
	<div class="col-sm-8 col-sm-offset-2 stepshow">
		<div class="step">
			<div class="stepover" style="width:50%"></div>
			<div class="stepson step1 active">
				<span>1</span>
				<h5>选择活动范围</h5>
			</div>
			<div class="stepson step2 active">
				<span>2</span>
				<h5>制定活动内容</h5>
			</div>
			<div class="stepson step3">
				<span>3</span>
				<h5>完成</h5>
			</div>
		</div>
	</div>
	

	<div class="col-sm-12 ">
		<form class="form-horizontal ruleadd">
			<div class="out ">
				<div class="col-sm-10 col-md-offset-1" ng-repeat="(name,value) in ruleList">
					<form name="{{name}}">
						<div class="panel panel-default">
							<div class="panel-heading">
								<div class="panel-title" ng-bind="value"></div>
								<div class="glyphicon glyphicon-remove closeit" ng-click="remove(name)"></div>
							</div>

							<div class="panel-body">
								<div ng-include="'admin/rule/module/'+name+'.html?v='+radom
					" scope="" onload="" ></div>
							</div>

							<ul class="list-group">
								<li class="list-group-item" style="overflow:hidden">
									<a class="btn btn-danger col-sm-3 col-sm-offset-9" ng-click="saveFn(name)" ng-disabel>保存</a>
								</li>
							</ul>
						</div>
					</form>
				</div>
			</div>
			<div class="col-sm-12 ">
		<form class="form-horizontal ruleadd">
			<div class="out ">
				<div class="col-sm-10 col-md-offset-1" ng-repeat="(name,value) in ruleEditList">
					<form name="{{name}}">
						<div class="panel panel-default">
							<div class="panel-heading">
								<div class="panel-title" ng-bind="value"></div>
							</div>

							<div class="panel-body">
								<div ng-include="'admin/rule/show/'+name+'.html?v='+radom
					" scope="" onload="" ></div>
							</div>

							<ul class="list-group">
								<li class="list-group-item" style="overflow:hidden">
									<a class="btn btn-danger col-sm-3 col-sm-offset-9" ng-click="editFn(name)" ng-disabel>修改</a>
								</li>
							</ul>
						</div>
					</form>
				</div>
			</div>
		</form>
	</div>
			<div class="out ">
				<div class="col-sm-6 col-md-offset-3">
					<button ng-show="addshow" type="button" class="btn btn-danger btn-block"  ng-click="addRuleFn()">添加活动</button>
				</div>
			</div>
			<div class="out ">
				<div class="col-sm-8 mt20 col-md-offset-3">
					<div class="form-group ">
						<div class="col-sm-3 col-sm-offset-1 ">
							<a class="btn btn-default btn-block" back-button>返回</a>
						</div>
						<div class="col-sm-3 col-sm-offset-1 ">
							<a class="btn btn-danger btn-block" ng-click="showModle()">下一步</a>
						</div>
					</div>
				</div>
			</div>

		</form>
	</div>


	<div id="showadd" class="modal fade addpanel" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content" style="overflow:hidden">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">×</span>
						<span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="mySmallModalLabel" ng-bind="modal.title"></h4>
				</div>
				<div class="modal-body" ng-include="'admin/rule/module/'+modal.html+'?v='+radom"></div>
				<div class="modal-footer" ng-show="view.couponFn">
					<div class="col-sm-3 col-sm-offset-6">
											<a class="btn btn-danger btn-block" ng-click="couponSaveFn(view.couponFn)">确定</a>


					</div>
					<div class="col-sm-3">
											<a data-dismiss="modal" class="btn btn-default btn-block">关闭</a>

					</div>

				</div>
			</div>
		</div>
	</div>